import React from "react";
import ReactDOM from "react-dom";
import { HashRouter as Router, Route, Switch } from "react-router-dom";
import createHistory from "history/createHashHistory";
import "antd/dist/antd.css";
import "./index.css";
import "./style/list.css";
// import App from './App';
import MeetingArrange from "./pages/MeetingArrange";
import Meetings from "./wapPages/WMeetings";
import WWeekMeeting from "./wapPages/WWeekMeeting";
import WManageMeeting from "./wapPages/WManageMeeting";
// import IndexList from "./wapPages/IndexList";

const history = createHistory();

ReactDOM.render(
  <Router history={history}>
    <Switch>
      <Route exact path="/" component={MeetingArrange}></Route>
      <Route exact path="/WMeetings" component={Meetings}></Route>
      <Route exact path="/WWeekMeetings" component={WWeekMeeting}></Route>
      <Route exact path="/WManageMeeting" component={WManageMeeting}></Route>

      {/* <Route exact path="/IndexList" component={IndexList}></Route> */}

      {/* <Route path="/admin" component={App}></Route> */}
      {/* 重定向 */}
      {/* <Redirect to="/" /> */}
    </Switch>
  </Router>,
  document.getElementById("root")
);
// history.push("/admin");
// history.go();
